package com.controller;

import com.search.bturls.BturlsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by Tonight on 2017/4/13.
 */
@Controller
@RequestMapping("/")
public class StartController {


    @Autowired
    BturlsService bturlsService;

    @RequestMapping("/getSearchData")
    @ResponseBody
    public Object getSearchData(String searchValue,Integer currentPage) throws Exception
    {
        return bturlsService.getBtDataList(searchValue,currentPage);
    }

}
